// 登录接口需要携带的ts类型
export interface LoginForm {
  username: string;
  password: string;
}

// 登录接口返回的数据类型
export interface LoginResponseData {
  code: number;
  data: {
    token?: string;
  };
  msg?: string;
}

// 定义服务器返回用户信息相关的数据类型
export interface UserResponseData {
  code: number;
  data: {
    userId: number;
    avatar: string;
    username: string;
    password: string;
    desc: string;
    roles: string[];
    buttons: string[];
    routes: string[];
    token: string;
  };
  msg?: string;
}